import react from '@vitejs/plugin-react-swc'
import {defineConfig} from 'vite'
import checker from 'vite-plugin-checker'

export default defineConfig({
    resolve: {
        alias: {
            '@app': '/src/app',
            '@entities': '/src/entities',
            '@widgets': '/src/widgets',
            '@pages': '/src/pages',
            '@shared': '/src/shared',
            '@features': '/src/features',
            '@img': '/img',
        }
    },
    plugins: [
        react(),
        checker({
            typescript: true,
            overlay: {
                initialIsOpen: false,
                panelStyle: "left: 0; top: 0; margin: auto; width: 95%; height: 95%; " +
                    "border-radius: 15px; background-color: rgba(11, 21, 33, 0.95)"
            },
        })
    ],
    server: {
        port: 3000,
        host: true
    }
})
